// For compilers that support precompilation, includes "wx/wx.h".
#include "wx/wxprec.h"

#ifdef __BORLANDC__
    #pragma hdrstop
#endif

// for all others, include the necessary headers (this file is usually all you
// need because it includes almost all "standard" wxWidgets headers)
#ifndef WX_PRECOMP
    #include "wx/wx.h"
#endif

#include "tools\DLine.h"
#include "Dlink.h"


Dlink::Dlink()
{
	this->m_pen.SetWidth(2);
}


Dlink::~Dlink(void)
{
	
}

int Dlink::GetFirstID() { return m_firstID; }
int Dlink::GetSecondID() { return m_secondID; }
void Dlink::SetSecondID(int id) { this->m_secondID = id; }
void Dlink::SetFirstID(int id) { m_firstID = id; }

void Dlink::ConvertToText(wxString *str)
{
	*str << wxT("link") << wxT("\t") << x1 << wxT("\t") << y1 << wxT("\t") << x2 << wxT("\t") << y2  << wxT("\t") << this->m_firstID << wxT("\t") << this->m_secondID << wxT("\n");
}